/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.feiyue.basic.reader.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.LinearLayout;

public class PageSettingDialogAdapter extends BaseAdapter {
	private Context mContext;
	private LayoutInflater mInflater;
	private int[] names;

	public PageSettingDialogAdapter(Context paramContext, int[] paramArrayOfInt) {
		this.mContext = paramContext;
		this.names = paramArrayOfInt;
		this.mInflater = LayoutInflater.from(paramContext);
	}

	public int getCount() {
		return this.names.length;
	}

	public Object getItem(int paramInt) {
		return null;
	}

	public long getItemId(int paramInt) {
		return 0L;
	}

	public View getView(int paramInt, View paramView, ViewGroup paramViewGroup) {
		Holder localHolder = new Holder();
		View localView = this.mInflater.inflate(2130903067, null);
		localHolder.mRightLayout = ((LinearLayout) localView
				.findViewById(2131099845));
		localHolder.mBootomLayout = ((LinearLayout) localView
				.findViewById(2131099846));
		localHolder.imageView = ((ImageView) localView.findViewById(2131099844));
		localHolder.imageView.setBackgroundResource(this.names[paramInt]);
		if (paramInt == 2)
			localHolder.mRightLayout.setVisibility(4);
		if ((paramInt == 3) || (paramInt == 4) || (paramInt == 5))
			localHolder.mBootomLayout.setVisibility(4);
		if (paramInt == 5)
			localHolder.mRightLayout.setVisibility(4);
		return localView;
	}

	public void setList(int[] paramArrayOfInt) {
		this.names = paramArrayOfInt;
	}

	public class Holder {
		ImageView imageView;
		LinearLayout mBootomLayout;
		LinearLayout mRightLayout;
	}
}